﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeBehind="DiemMonHoc.aspx.cs" Inherits="WTSQCB.DiemMonHoc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp; Quản lý điểm môn học</p>
    <p>
        <asp:GridView ID="DiemMonHocdgv" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataKeyNames="MaHocVien,MaMonHoc,MaLop,MaHocKi" DataSourceID="SqlDataSource1" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
            <Columns>
                <asp:CommandField ShowSelectButton="True" ButtonType="Button" SelectText="CHỌN" />
                <asp:BoundField DataField="MaHocVien" HeaderText="Mã học viên" ReadOnly="True" SortExpression="MaHocVien" />
                <asp:BoundField DataField="MaMonHoc" HeaderText="Mã môn học" ReadOnly="True" SortExpression="MaMonHoc" />
                <asp:BoundField DataField="MaLop" HeaderText="Mã lớp" ReadOnly="True" SortExpression="MaLop" />
                <asp:BoundField DataField="MaHocKi" HeaderText="Mã học kì" ReadOnly="True" SortExpression="MaHocKi" />
                <asp:BoundField DataField="DiemQuaTrinh" HeaderText="Điểm quá trình" SortExpression="DiemQuaTrinh" />
                <asp:BoundField DataField="DiemThi" HeaderText="Điểm thi" SortExpression="DiemThi" />
                <asp:BoundField DataField="DiemKetThuc" HeaderText="Điểm kết thúc" SortExpression="DiemKetThuc" />
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
    </p>
    <p>
        &nbsp;
        <asp:Button ID="Suabtn" runat="server" OnClick="Suabtn_Click" Text="SỬA" Width="80px" />
    </p>
    <p>
        &nbsp;
        Mã học viên:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="MaHocVientxt" runat="server" Width="150px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="MaHocVientxt" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
    </p>
    <p>
        &nbsp;
        Điểm quá trình:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="DiemQuaTrinhtxt" runat="server" Width="150px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="DiemQuaTrinhtxt" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
&nbsp;<asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="DiemQuaTrinhtxt" ErrorMessage="RangeValidator" ForeColor="Red" MaximumValue="10" MinimumValue="0" Type="Double">Điểm từ 0 - 10</asp:RangeValidator>
    </p>
    <p>
        &nbsp;
        Điểm thi:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="DiemThitxt" runat="server" Width="150px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="DiemThitxt" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
&nbsp;<asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="DiemThitxt" ErrorMessage="RangeValidator" ForeColor="Red" MaximumValue="10" MinimumValue="0" Type="Double">Điểm từ 0 - 10</asp:RangeValidator>
    </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:WebDiemTSQCBConnectionString %>" SelectCommand="DiemMonHocLoad" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    </p>
</asp:Content>
